{
  "users": {
    "user": [
    {{foreach from=$users item=user name=feusers}}
    {
      "id": "{{$user.id}}",
      "name": "{{$user.name}}",
      "group_id": "{{$user.group_id}}",
      "group_name": "{{$user.group_name}}",
      "tasktype": "{{$user.tasktype}}",
      "imagesList": "{{$user.imagesList}}",
      "taskCount": "{{$user.taskCount}}"
    }{{if $smarty.foreach.feusers.last}} {{else}},{{/if}}
      {{/foreach}}
    ]
  }
}